package com.example.demo.service.impl;

import com.example.demo.mapper.TeacherMapper;
import com.example.demo.pojo.Course;
import com.example.demo.pojo.Teacher;
import com.example.demo.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TeacherServiceImpll implements TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;
    @Override
    public Teacher getTeacherByUid(String uid) {
        return teacherMapper.getTeacherByUid(uid);
    }

    @Override
    public Teacher getCourse(int tid) {
        return teacherMapper.getCourse(tid);
    }

    @Override
    public void insertTeacher(List<Teacher> teacherList) {
        teacherMapper.insertTeacher(teacherList);
    }

    @Override
    public Teacher selectTest(Map<String, Object> map) {
        return teacherMapper.selectTest(map);
    }
}
